package cake
{
	import mx.core.Application;
	
	public class Router
	{
		public function Router(){
		}
		
		static public function connect(event:String,action:Function):Boolean{
			return Dispatcher.getInstance().addEventListener(event,action);
		}
		
		static public function disconnect(event:String,action:Function):Boolean{
			return Dispatcher.getInstance().removeEventListener(event,action);
		} 
	}
}